package com.lbd.system.listener;

import com.lbd.commons.listener.AbstractListener;
import com.lbd.system.bean.User;
import com.lbd.system.event.UserRegisterEvent;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Component;

/**
 * Created by WangYajie on 2016/9/12.
 */
@Component
public class UserRegisterListener extends AbstractListener<UserRegisterEvent, User> {
    private final Logger log = Logger.getLogger(this.getClass());

    @Override
    public void onError(User entity, String message) {

    }

    @Override
    public void onFail(User entity, String message) {

    }

    @Override
    public void onSuccess(User entity, String message) {
        log.info("我来处理用户注册成功了" + entity);
    }
}
